package com.szq.netty.domain.protocol;

import com.szq.netty.domain.MsgDemo01;
import com.szq.netty.domain.MsgDemo02;
import com.szq.netty.domain.MsgDemo03;

import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;

/**
 * @ClassName: PacketClazzMap
 * @Description:
 * @Author: szq
 * @Date: 2021-11-23 11:02:56
 */
public class PacketClazzMap {

    public final static Map<Byte, Class<? extends Packet>> packetTypeMap = new ConcurrentHashMap<>();

    static {
        packetTypeMap.put(Command.Demo01, MsgDemo01.class);
        packetTypeMap.put(Command.Demo02, MsgDemo02.class);
        packetTypeMap.put(Command.Demo03, MsgDemo03.class);
    }
}
